package biz.datalk.industrialland.admin.modules.common.pojo.dto;

import biz.datalk.industrialland.common.validated.ChkSeq;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.group.GroupSequenceProvider;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author tarofang@163.com
 * @date 2023-09-05
 */
@Getter
@Setter
@ToString
@GroupSequenceProvider(LoginWithCodeDTOGroupSequenceProvider.class)
public class LoginWithCodeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 手机号 */
    @NotBlank(message = "请输入手机号", groups = ChkSeq.N0.class)
    private String mobile;
    /** 短信验证码 */
    @NotBlank(message = "请输入验证码", groups = ChkSeq.N1.class)
    private String code;
    /** 图形验证码 */
    @NotBlank(message = "请输入图形验证码", groups = ChkCaptcha.class)
    private String captcha;
    /** 图形验证码标识 */
    @NotBlank(message = "未知的图形验证码标识", groups = ChkCaptcha.class)
    private String ran;

    public interface ChkCaptcha {
    }


}
